package com.ktjy.mapper;

import com.ktjy.pojo.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface SupplierMapper {
    public int addSupplier(Supplier supplier);

    public int modSupplier(Supplier supplier);

    public int delSupplier(@Param("id") Integer id);

//    四
public List<Supplier> getSupplierListByWhereIf(@Param("supCode") String supCode, @Param("supName") String supName);

    public List<Supplier> getSupplierListByChoose(@Param("supName") String supName, @Param("supCode") String supCode, @Param("supContact") String supContact, @Param("createdTime") Date createdTime);

    public int getSupplierListByIfSet(Supplier supplier);

    public int getSupplierListByIfTrim(Supplier supplier);

    public List<Supplier> getSupplierListByPage(@Param("pageBegin") Integer pageBegin, @Param("pageSize") Integer pageSize);
}
